import request from '@/utils/request'

// 查询土壤样品检测结果列表
export function listSoillihua(query) {
  return request({
    url: '/soillihua/soillihua/list',
    method: 'get',
    params: query
  })
}

// 查询土壤样品检测结果详细
export function getSoillihua(id) {
  return request({
    url: '/soillihua/soillihua/' + id,
    method: 'get'
  })
}

// 新增土壤样品检测结果
export function addSoillihua(data) {
  return request({
    url: '/soillihua/soillihua',
    method: 'post',
    data: data
  })
}

// 修改土壤样品检测结果
export function updateSoillihua(data) {
  return request({
    url: '/soillihua/soillihua',
    method: 'put',
    data: data
  })
}

// 删除土壤样品检测结果
export function delSoillihua(id) {
  return request({
    url: '/soillihua/soillihua/' + id,
    method: 'delete'
  })
}
